//
//  Car.m
//  Exam12-1
//
//  Created by 孙晓晔 on 2017/4/22.
//  Copyright © 2017年 孙晓晔. All rights reserved.
//

#import "Car.h"

@implementation Car

-(instancetype)initWithDict:(NSDictionary*)dict {
    self = [super init];
    
    if (self) {
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
}

+(instancetype)carWithDict:(NSDictionary*)dict {
    return [[Car alloc]initWithDict:dict];
}
@end
